/**
 * @Author: Wangaxb
 * @Date: 2019年11月21日
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';
// 根据条件查询发布信息
export const getOrderInfo = params => axios.get(`${SERVER.SPAREPARTS}/exchange_order/search`, { params });
// 卖家点击确认
export const confirmOrder = params => axios.put(`${SERVER.SPAREPARTS}/exchange_order/confirm/${params.partPlatformOrderId}`, params);
// 卖家点击发货
export const shippedOrder = params => axios.put(`${SERVER.SPAREPARTS}/exchange_order/shipped/${params.partPlatformOrderId}`, params);
// 关闭订单
export const closeOrder = params => axios.put(`${SERVER.SPAREPARTS}/exchange_order/close/${params.partPlatformOrderId}`, params);
